import request from "@/utils/request.js"

// 接口模板
export function getLogin(data = {}) {
	return request({
		url: '/api/login',
		method: 'post',
		data,
		headers: {
			isToken: false
		},
	})
}

//获取用户信息
export function getUserinfo(data = {}) {
	return request({
		url: '/user/userinfo',
		method: 'get',
		data,
		headers: {
			isToken: true
		},
	})
}
